/**
 * 
 */
package edu.washington.tcss360.burningpenguins.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.washington.tcss360.burningpenguins.data.DataObject;
import edu.washington.tcss360.burningpenguins.data.Paper;

/**
 * @author Rolando Sierra
 *
 */
public class PaperTest {

	/** A category object to use in tests */
	private DataObject my_paper;
	
	/** Sets up the data object for tests. */
	@Before
	public void setUp() 
	{
		my_paper = new Paper();
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getId()}.
	 */
	@Test
	public void testGetId() 
	{
		my_paper.setId(3);
		assertSame("Incorrect Id", my_paper.getId(), 3);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getUserId()}.
	 */
	@Test
	public void testGetUserId() 
	{
		((Paper) my_paper).setUserId(4);
		assertSame("Incorrect Id", ((Paper) my_paper).getUserId(), 4);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getConferenceId()}.
	 */
	@Test
	public void testGetConferenceId() 
	{
		((Paper) my_paper).setConferenceId(2);
		assertSame("Incorrect Id", ((Paper) my_paper).getConferenceId(), 2);
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getTitle()}.
	 */
	@Test
	public void testGetTitle() 
	{
		((Paper) my_paper).setTitle("test");
		assertSame("Incorrect Id", ((Paper) my_paper).getTitle(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getPaperAbstract()}.
	 */
	@Test
	public void testGetPaperAbstract() 
	{
		((Paper) my_paper).setPaperAbstract("test");
		assertSame("Incorrect Id", ((Paper) my_paper).getPaperAbstract(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getPaperFilePath()}.
	 */
	@Test
	public void testGetPaperFilePath() 
	{
		((Paper) my_paper).setPaperFilePath("test");
		assertSame("Incorrect Id", ((Paper) my_paper).getPaperFilePath(), "test");
	}

	/**
	 * Test method for {@link edu.washington.tcss360.burningpenguins.data.Paper#getPaperAcceptanceStatus()}.
	 */
	@Test
	public void testGetPaperAcceptanceStatus() 
	{
		((Paper) my_paper).setPaperAcceptanceStatus(2);
		assertSame("Incorrect Id", ((Paper) my_paper).getPaperAcceptanceStatus(), 2);
	}

}
